package com.UnionPayCenter.distribution.manager;

import com.UnionPayCenter.distribution.domain.DistributionUser;
import com.UnionPayCenter.distribution.entity.UserDistributionDO;
import com.github.pagehelper.Page;

/**
 * @author Noah
 * @since 1.0.0, 2019/07/03
 */
public interface UserDistributionManager {

    /**
     * 初始化分销用户信息表
     *
     * @param user
     */
    UserDistributionDO initUserDistribution(DistributionUser user, Long accountId);


    /**
     * 获取支付分销用户信息
     *
     * @param bId    商户ID
     * @param shopId 店铺ID
     * @param userId 用户ID
     * @return
     */
    UserDistributionDO getPayUserDistributionByUserId(Long bId, Long shopId, Long userId);


}
